import Vue from 'vue'
import VueRouter from "vue-router";
// import Test from '../components/Test'
import Login from '../views/Login'
import Home from '../views/Home'
//安装插件
Vue.use(VueRouter);
//路由和组件之间的映射关系
const routes = [
  { path: '/', component: Login },
  { path: '/home', component: Home }
  // { path: '/test', component: Test }
];
const router = new VueRouter({
  routes
});
export default router;
